package com.infitecs.eyas.power.service;

import com.infitecs.eyas.power.model.Power;
import com.infitecs.krill.mybatis.model.Page;

import java.util.List;

/**
 * Created by Demon on 2015/4/24.
 */
public interface PowerService {

    boolean addPower(Power power);

    Power addOnlyPower(Power power);

    boolean addCaseId(int id);

    List<Power> getAllPower();

    List<Power> getAllCase(int id);

    boolean addCase(Power power);

    int getPowerByCaseId(int caseId);

    int countPowerByName(Power power);

    int countPowerByCase(Power power);

    int countPowerCaseName(Power power);

    List<Power> getPowerListPage(Page page,Power power);

    boolean delCase(String id);

    List<String> getUserIds(String caseId);

    boolean updteShareUserIds(Power power);

    void editCaseName(Power power);
}
